cmake_minimum_required(VERSION 3.1)

project(test1)

include(GNUInstallDirs)
if (NOT CMAKE_ARCHIVE_OUTPUT_DIRECTORY)
    set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
endif ()
if (NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
endif ()
if (NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
endif ()

if (WIN32)
    SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
    SET(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH})
    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
    set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
endif ()
#file(GLOB_RECURSE SRC_DIR_LIST "/home/layty/work/Test/luaTest/LuaBridge3/Tests/Lua/Lua.5.4.4/src/*.c" "/home/layty/work/Test/luaTest/LuaBridge3/Tests/Lua/Lua.5.4.4/src/*.h")
#add_executable(mylua ${SRC_DIR_LIST})


#add_subdirectory(/home/layty/work/Test/luaTest/LuaBridge3/Tests/Lua/Lua.5.3.6/src)

add_subdirectory(Lua.5.3.6/src)
include_directories(Lua.5.3.6/src)
include_directories(LuaBridge/Source/)
add_subdirectory(mylib)